<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix">
   <div class="midd_con"> 
   <{if $smarty.const.HOME_LHT_NUM_TYPE eq 'True'}>
      <div id="slider-wrapper" class="clearfix">
            <div id="slider" class="nivoSlider">
            <{foreach item=item name=name from=$adlist}>
                <a href="<{$item.ad_url}>" target="_blank"><img src="<{$smarty.const.WEBDIR}>upload/<{$item.ad_image}>" width="750" height="406" alt="<{$item.ad_title}>" title="<{$item.ad_title}>" /></a>
            <{/foreach}>
            </div>
      </div>
   <{/if}>
      <div class="new_pro">
         <h3 class="h3_title_e04 pb10">New Products</h3>
         <div class="main_pro_show clearfix">
                    <div class="mps_list">
                	<div class="mps_list_contain" id="carousel">
                        <ul>
                        <{Productslist c=products a=view cid=$categories_id num=10 order=1 w=165 jg=array('<li>','</li>')}>
                        </ul>
                    </div>
                    <span class="mps_prev" id="prev"></span>
                	<span class="mps_next" id="next"></span>
                </div>
        </div>  
     </div>
   </div>  
   <div class="fr">
   <ul class="categories_list clearfix">
      <{function name=leftmenu level=0}>
      <{foreach from=$data item=entry}>
      <li><a href="<{spUrl c=products a=index alias=$entry.alias}>" class="sub_link<{if $entry.categories_id eq $categories_id}> selected<{/if}>"><{if $entry.image neq ''}><img src="<{$smarty.const.WEBDIR}>upload/<{$entry.image}>"/><{/if}> <{$entry.detail.categories_name}></a>
      <{if isset($entry.child)}>         
        <ul class="son"><{call name=leftmenu data=$entry.child level=$level}></ul>
      <{/if}>
      </li>
      <{/foreach}>
      <{/function}>
      <{call name=leftmenu data=$categoriesTop}>
   </ul>
   
   </div>
</div>
    <script type="text/javascript">
	$(window).load(function() {
		$('#slider').nivoSlider();
	});
    </script>

<div id="content" class="clearfix">
      <{function name=categorieslist level=0}>
      <{foreach from=$data item=entry name=name}>
      <div class="content_box">
        <div class="con_title_<{if $smarty.foreach.name.index % 2 == 0}>ed<{else}>ee<{/if}> con_title clearfix">
            <h3><{if $entry.image neq ''}><img src="<{$smarty.const.WEBDIR}>upload/<{$entry.image}>"/><{/if}> <{$entry.detail.categories_name}></h3>
              <{if isset($entry.child)}>
              <ul class="ul_<{if $smarty.foreach.name.index % 2 == 0}>ed<{else}>ee<{/if}>">
               <{foreach $entry.child as $entry2}>
               <li><a href="<{spUrl c=products a=index alias=$entry2.alias}>" class="sub_link<{if $entry2.categories_id eq $categories_id}> selected<{/if}>"><{if $entry2.image neq ''}><img src="<{$smarty.const.WEBDIR}>upload/<{$entry2.image}>"/><{/if}> <{$entry2.detail.categories_name}></a></li>
               <{/foreach}>
              </ul>
              <{/if}>
              <a href="<{spUrl c=products a=index alias=$entry.alias}>" class="more more_<{if $smarty.foreach.name.index % 2 == 0}>ed<{else}>ee<{/if}>">MORE>></a>
        </div>
        <ul class="index_pro_list">
            <{NewproductsDiv c=products a=view cid=$entry.categories_id num=11 order=1 Sloop=$smarty.foreach.name.index jg=array('<li>','</li>')}>
        </ul>
      </div>
      <{/foreach}>
      <{/function}>
      <{call name=categorieslist data=$categoriesTop}>
      
    <{if $smarty.const.HOME_NEWS_TYPE eq 'True'}> 
      <div class="content_box">
        <div class="con_title_66 con_title clearfix">
            <h3>News</h3>     
            <ul id="news_tab">
            <{function name=newscategories level=0}>
            <{foreach from=$data item=entry name=name}>
                <li<{if $smarty.foreach.name.iteration == 1}> class="ul_66"<{/if}>><a href="<{spUrl c=news a=index alias=$entry.alias}>"><{$entry.detail.categories_name}></a></li>
            <{/foreach}>
            <{/function}>
            <{call name=newscategories data=$newscategoriesright}>
            </ul>
            <a href="<{spUrl c=news a=index}>" class="more more_66">MORE>></a>
        </div>
        <div id="news_tab_con">
            <{function name=newscategories2 level=0}>
            <{foreach from=$data item=entry name=name}>
            <ul class="news_con<{if $smarty.foreach.name.index == 1}> one<{/if}>">
                <{GetNewsListDiv c=news a=view cid=$entry.categories_id num=$smarty.const.RIGHTNEWS jg=array('<li>','</li>')}>
            </ul>
            <{/foreach}>
            <{/function}>
            <{call name=newscategories2 data=$newscategoriesright}>
             </ul>
             
          </div>
      </div>
    <{/if}> 
</div>
<{include file="footer.html"}>
</body>
</html>